package com.yic.module.mes.controller.admin.report.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;
import com.yic.framework.excel.core.annotations.DictFormat;
import com.yic.framework.excel.core.convert.DictConvert;


/**
 * 生产报工 Excel VO
 *
 * @author 系统管理员
 */
@Data
public class ReportExcelVO {

    @ExcelProperty("主键")
    private Long id;

    @ExcelProperty("生产排产ID")
    private Long moId;

    @ExcelProperty("生产工单")
    private String moCode;

    @ExcelProperty("生产计划ID")
    private Long planId;

    @ExcelProperty("计划工单")
    private String planCode;

    @ExcelProperty("批次号")
    private String batchNo;

    @ExcelProperty("产品信息")
    private Long itemId;

    @ExcelProperty("产品生产信息")
    private Long itemProduceId;

    @ExcelProperty("工厂")
    private Long factoryId;

    @ExcelProperty("生产车间")
    private Long workshopId;

    @ExcelProperty("工作中心")
    private Long centerId;

    @ExcelProperty("部门")
    private Long deptId;

    @ExcelProperty("报工人")
    private Long userId;

    @ExcelProperty("协作人")
    private String cooperate;

    @ExcelProperty("报工工序")
    private Long processId;

    @ExcelProperty("报工数量")
    private BigDecimal reportAmount;

    @ExcelProperty("流水号")
    private String serialNo;

    @ExcelProperty("审批时间")
    private LocalDateTime approveTime;

    @ExcelProperty("审批人")
    private Long approveUser;

    @ExcelProperty(value = "审核状态", converter = DictConvert.class)
    @DictFormat("system_approve") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer approve;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
